package com.example.springbootaop.listener;

import cn.hutool.core.util.IdUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 订单
 * @Author: zhangdongkang
 * @Date: 2022/4/24
 **/
@RestController
public class OrderController {

	/**
	 * @Description: 添加订单
	 * @Author: zhangdongkang
	 * @Date: 2022/4/24
	 **/
	@OrderEvent
	@GetMapping("order/add")
	public String addOrder(){
		String orderId = IdUtil.fastUUID();
		//下单。。。
		return orderId;
	}



}
